<template>
  <div>
    <common-head title=""/>
    <div class="content">
      <van-form @submit="onSubmit" label-align="center">
          <van-field v-model="text" label="文本" />
          <!-- 输入密码 -->
          <van-field v-model="password" type="password" label="密码" />
          <div style="margin: 16px;">
            <van-button round block type="info" native-type="submit">
              提交
            </van-button>
          </div>
        </van-form>
    </div>
    <my-tabbar />
  </div>
</template>

<script>
import CommonHead from 'components/CommonHead'
import MyTabbar from 'components/MyTabbar'
export default {
  data () {
    return {
      username: '',
      password: ''
    }
  },
  methods: {
    onSubmit (values) {
      console.log('submit', values)
    }
  },
  components: {
    CommonHead,
    MyTabbar
  }
}
</script>

<style lang="scss" scoped>
.content{
  margin-top: 50px;
  padding: 100px,0;
  display: flex;
  justify-content: center;
  align-items: center;
  // margin: 50px 0;
  width: 100%;
  height: 350px;
  background: #abcdef;
  .van-form{
    margin-top: 20px;
    /deep/.van-field__error-message{
      font-size: 12px;
      height: 14px;
    }
  }
}
</style>
